// decltype is more accurate
// The origin value is more flexible


#include <iostream>
#include <typeinfo>
using namespace std;

int main( void ) {
	const int a = 10;
	auto b = a;
	cout << "b type : " << typeid( b ).name( ) << endl;
	cout << "&b = " << &b << endl;
	cout << "&a = " << &a << endl;
	b++;

	decltype(a) c = 8888; 	// a;
	cout << "c type : " << typeid( c ).name( ) << endl;
	cout << "&c = " << &c << endl;
	cout << "&a = " << &a << endl;
//	c++;	err
	

	return 0;
}

